package com.falcon.authority.api;

import com.falcon.authority.domain.po.RolePO;
import com.falcon.authority.service.IRoleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zongf
 * @date 2025-02-17
 **/
@Slf4j
@Service
public class RoleApi implements IRoleApi{

    @Autowired
    private IRoleService roleService;

    @Override
    public List<RolePO> queryRoleListByUserId(Long userId) {
        return this.roleService.queryRoleListByUserId(userId);
    }
}
